package com.example.demo.cim.client;

import com.example.demo.cim.client.scanner.Scan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class CimClientApplication implements CommandLineRunner {
	private final static Logger LOGGER = LoggerFactory.getLogger(CimClientApplication.class);

	public static void main(String[] args) {
		SpringApplication.run(CimClientApplication.class, args);
		LOGGER.info("启动 Client 服务成功");
	}


	@Override
	public void run(String... strings) throws Exception {
		Scan scan  = new Scan();
		Thread thread = new Thread(scan);
		thread.setName("scan-thread");
		thread.start();
	}
}


